#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core/utils/logger.hpp>
#include <QApplication>
#include "mainwindow.h"
#include "../dll_lib/my_lib.h"

int main(int argc, char *argv[])
{
    int a;
    int b;
    a = 5;
    b = 2;
    printf("%d + %d = %d\n", a, b, add(a, b)); // 直接调用动态库函数
    printf("%d - %d = %d\n", a, b, substract(a, b)); // 直接调用动态库函数
    const char *image_path = "d:/C_APP/test/Penguins.jpg";
    show(image_path);
    // return 0;

    cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_SILENT);
    QApplication app(argc, argv);
    MainWindow window;
    window.show();
    return app.exec();
}
